import "./style.css";



export { sum } from "./sum";


declare var __DEBUG__: boolean;

let debug = __DEBUG__;

console.log("[tslib-crawler.iife.js] inject  js into webview with url ", window.location.href, " debug is ", debug)

// Adding an event listener for the 'fetch' event
window.addEventListener('fetch', function (event) {
    // Intercept and handle the fetch event here
    console.log('Fetch event intercepted:', event);
    // You can modify the request or respond with a custom response here
});



// // 在主线程中注册 Service Worker
// if ("serviceWorker" in navigator) {
//     navigator.serviceWorker
//         .register("http://127.0.0.1:1430/service-worker.js")
//         .then(function (registration) {
//             console.log("Service Worker 已注册:", registration);
//         })
//         .catch(function (err) {
//             console.log("Service Worker 注册失败:", err);
//         });
// }
